home *** CD-ROM | disk | FTP | other *** search
- Path: cs.tu-berlin.de!news
- From: Roman Lechtchinsky <wolfro@cs.tu-berlin.de>
- Newsgroups: comp.lang.c++
- Subject: Re: HELP!!! Syntax error!
- Date: Thu, 07 Mar 1996 16:52:44 +0100
- Organization: Technical University of Berlin
- Message-ID: <313F064C.36E4@cs.tu-berlin.de>
- References: <4hmufg$7fq@newsbf02.news.aol.com>
- NNTP-Posting-Host: 130.149.17.231
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- DJMintz wrote:
- >
- > Okay, here is the code I am trying to compile. The error I am getting is:
- > Error fade.c 44: ) expected. Here is the code. Please see if you can fix
- > it:
- >
- > [...]
- >
- > main(argc,*argv[]) < ---- ERROR OCCURS HERE, ON LINE 44! Please help!
- > {
- >
- > int argc;
- > char *argv[];
- >
- > [...]
-
- You have to change this either to
-
- int main( int argc, char *argv[] )
- {
- ...
- }
-
- or to
-
- int main( argc, argv )
- int argc;
- char *argv[];
- {
- ...
- }
-
- The second version is rather old-fashioned and should not be used.
-
- Bye
-
- Roman
-